package top.qitun;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

//@EnableAsync
//@EnableScheduling
@EnableEurekaClient
@MapperScan(basePackages = "top.qitun.bizz.**.dao")
@SpringBootApplication
public class OssMsApplication {

	public static void main(String[] args) {
		SpringApplication.run(OssMsApplication.class, args);
	}
	
	@Bean
	public CommonsMultipartResolver commonsMultipartResolver(){
		final CommonsMultipartResolver commonsMultipartResolver = new CommonsMultipartResolver();
		commonsMultipartResolver.setMaxUploadSize(20*1024*1024);
		return commonsMultipartResolver;
	}
}
